7fe03b
@@ -98,7 +98,7 @@
public Object invoke(Object proxy, Method method, Object[] args) throws Throwabl
             (e.getCause() instanceof TTransportException)) {
           caughtException = (TException) e.getCause();
         } else if ((e.getCause() instanceof MetaException) &&
-            e.getCause().getMessage().matches("JDO[a-zA-Z]*Exception")) {
+            e.getCause().getMessage().matches("(?s).*JDO[a-zA-Z]*Exception.*")) {
           caughtException = (MetaException) e.getCause();
         } else {
           throw e.getCause();
